package cn.com.guage.dtm.huawei;

import java.util.Scanner;

public class HJ4_字符串分隔 {
    public static void main(String[] args) {
       Scanner sc = new Scanner(System.in);
       String nextLine = sc.nextLine();
       while (nextLine.length() > 0) {
           if (nextLine.length() >=8) {
               String str = nextLine.substring(0,8);
               nextLine = nextLine.substring(8);
               System.out.println(str);
           }else {
              Integer nextLineLenth = nextLine.length();
               //Integer length = nextLine.length;
               String zero = "";
               for (int i = 0; i < 8 - nextLineLenth; i++) {
                   zero += "0";
               }
               System.out.println(nextLine+zero);
               break;
           }
       }
    }
}
